<?php
include_once ('../global.php');

class CApp extends App_Page_Admin
{
	private $cid;
	private $cateInfo;
	
	protected function getPara()
    {
		$this->cid = Tool_Input::clean('r', 'cid', 'int');
    }

	protected function checkPara()
    {
    }

    protected function main()
    {
    	if ($this->cid)
    	{
    		$this->cateInfo = $this->goods_category->getInfo($this->cid);
    	}
    	
        $this->setTitle("Welcome!");
        $this->setCurrMenu('goods', 'cate_edit');
    }

    protected function outputBody()
    {
    	$this->smarty->assign('cateInfo', $this->cateInfo);
        $this->smarty->display("admin/cate_edit.html");
    }
}

$app = new CApp("");
$app->run();
?>